<?php
defined('IN_MAIN') or exit('Invalid Access!');

function format_flash($file, $width, $height, $one_line=false){
return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" height=\"$height\" width=\"$width\">".($one_line? "" : "\n").
"<param name=\"movie\" value=\"$file\" />".($one_line? "" : "\n").
"<param name=\"quality\" value=\"high\" />".($one_line? "" : "\n").
"<param name=\"wmode\" value=\"transparent\" />".($one_line? "" : "\n").
"<embed src=\"$file\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" height=\"$height\" width=\"$width\" />".($one_line? "" : "\n").
"</object>";
}
?>